<?php
/**
 * SessionState
 *
 *
 */
class SessionTester extends CI_Controller {
	function __construct() {
		parent::__construct();
		$this->load->database();
	}
	
	function index() {
		$items = array('logged_in', 'uid', 'role', 'msg', 'login_error', 'return_url', 'regist_error');
		
		echo '<table width="50%" border="1px">';
		foreach ($items as $item) {
			echo '<tr>';
				echo '<td>' . $item . '</td>';
				echo '<td>' . $this->session->userdata($item) . '</td>';
			echo '</tr>';
		}
		echo '</table>';
	}
}
?>